import { Component } from "@/types/workspace";

export const v2: Component[] = [
  {
    name: "输入框",
    custom: false,
    initialValue: "",
    import: `import { Input } from 'element-ui'`,
  },
  {
    name: "选择器",
    custom: false,
    initialValue: null,
    import: `import { Select, Option } from 'element-ui'`,
  },
  {
    name: "单选框",
    custom: false,
    initialValue: "",
    import: `import { RadioGroup , Radio } from 'element-ui'`,
  },
  {
    name: "复选框组",
    custom: false,
    initialValue: [],
    import: `import { CheckboxGroup , Checkbox } from 'element-ui'`,
  },
  {
    name: "计数器",
    custom: false,
    initialValue: 0,
    import: `import { InputNumber } from 'element-ui'`,
  },
  {
    name: "日期选择器",
    custom: false,
    initialValue: null,
    import: `import { DatePicker } from 'element-ui'`,
    props: { type: "date" },
  },
  {
    name: "固定时间选择器",
    custom: false,
    initialValue: null,
    import: `import { TimeSelect } from 'element-ui'`,
  },
  {
    name: "任意时间选择器",
    custom: false,
    initialValue: null,
    import: `import { TimePicker } from 'element-ui'`,
  },
  {
    name: "自动补全输入框",
    custom: false,
    initialValue: "",
    import: `import { Autocomplete } from 'element-plus'`,
  },
  {
    name: "开关",
    custom: false,
    initialValue: false,
    import: `import { Switch } from 'element-ui'`,
  },
  {
    name: "复选框",
    custom: false,
    initialValue: false,
    import: `import { Checkbox } from 'element-ui'`,
  },
  {
    name: "级联选择器",
    custom: false,
    import: `import { Cascader } from 'element-ui'`,
    initialValue: "",
    props: { options: [] },
  },
  {
    name: "滑块",
    custom: false,
    initialValue: 0,
    import: `import { Slider } from 'element-ui'`,
  },
  {
    name: "评分",
    custom: false,
    initialValue: 0,
    import: `import { Rate } from 'element-ui'`,
  },
  {
    name: "取色器",
    custom: false,
    initialValue: "",
    import: `import { ColorPicker } from 'element-ui'`,
  },
  {
    name: "文件上传",
    custom: false,
    initialValue: null,
    import: `import { Upload } from 'element-ui'`,
  },
  {
    name: "穿梭框",
    custom: false,
    initialValue: [],
    import: `import { Transfer } from 'element-ui'`,
  },
];

export const v3: Component[] = [
  {
    name: "输入框",
    custom: false,
    initialValue: "",
    import: `import { ElInput } from 'element-plus'`,
  },
  {
    name: "选择器",
    custom: false,
    initialValue: null,
    import: `import { ElSelect, ElOption } from 'element-plus'`,
  },
  {
    name: "单选框",
    custom: false,
    initialValue: "",
    import: `import { ElRadioGroup , ElRadio } from 'element-plus'`,
  },
  {
    name: "复选框组",
    custom: false,
    initialValue: [],
    import: `import { ElCheckboxGroup , ElCheckbox } from 'element-plus'`,
  },
  {
    name: "计数器",
    custom: false,
    initialValue: 0,
    import: `import { ElInputNumber } from 'element-plus'`,
  },
  {
    name: "日期选择器",
    custom: false,
    initialValue: null,
    import: `import { ElDatePicker } from 'element-plus'`,
    props: { type: "date" },
  },
  {
    name: "固定时间选择器",
    custom: false,
    initialValue: null,
    import: `import { ElTimeSelect } from 'element-plus'`,
  },
  {
    name: "任意时间选择器",
    custom: false,
    initialValue: null,
    import: `import { ElTimePicker } from 'element-plus'`,
  },
  {
    name: "自动补全输入框",
    custom: false,
    initialValue: "",
    import: `import { ElAutocomplete } from 'element-plus'`,
  },
  {
    name: "开关",
    custom: false,
    initialValue: false,
    import: `import { ElSwitch } from 'element-plus'`,
  },
  {
    name: "复选框",
    custom: false,
    initialValue: false,
    import: `import { ElCheckbox } from 'element-plus'`,
  },
  {
    name: "级联选择器",
    custom: false,
    import: `import { ElCascader } from 'element-plus'`,
    initialValue: "",
    props: { options: [] },
  },
  {
    name: "滑块",
    custom: false,
    initialValue: 0,
    import: `import { ElSlider } from 'element-plus'`,
  },
  {
    name: "评分",
    custom: false,
    initialValue: 0,
    import: `import { ElRate } from 'element-plus'`,
  },
  {
    name: "取色器",
    custom: false,
    initialValue: "",
    import: `import { ElColorPicker } from 'element-plus'`,
  },
  {
    name: "文件上传",
    custom: false,
    initialValue: null,
    import: `import { ElUpload } from 'element-plus'`,
  },
  {
    name: "穿梭框",
    custom: false,
    initialValue: [],
    import: `import { ElTransfer } from 'element-plus'`,
  },
];
